package com.sj.purchase.modules.cost.domain.stock;

import javax.persistence.*;
import java.util.Date;

/**
 * sku库存记录
 * Created by icodebug on 17-7-14.
 */
@Entity
public class SkuStock {

    @Id
    private SkuStockId id;

    private Long num;//库存数量

    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;//wms同步库存的精确时间

    public SkuStockId getId() {
        return id;
    }

    public SkuStock setId(SkuStockId id) {
        this.id = id;
        return this;
    }

    public Long getNum() {
        return num;
    }

    public SkuStock setNum(Long num) {
        this.num = num;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public SkuStock setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
}
